package wails_core

type Result struct {
	Code    int
	Message string
	Data    any
}

func Success(data any) *Result {
	return &Result{
		Code:    200,
		Message: "成功",
		Data:    data,
	}
}

func Wrong(code int, msg string, data any) *Result {
	return &Result{
		Code:    code,
		Message: msg,
		Data:    data,
	}
}
